package bavaria.hightech.testit;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import bavaria.hightech.banking.Account;
import bavaria.hightech.banking.B2B;
import bavaria.hightech.banking.BankRegistry;
import bavaria.hightech.exception.MoneyLauderingException;
import bavaria.hightech.exception.NoMoneyEcxeption;
import bavaria.hightech.money.Currency;
import bavaria.hightech.money.Money;
import static org.junit.Assert.*;

public class UnitTestRegistry implements B2B {

	private BankRegistry reg1;
	private BankRegistry reg2;
	
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}


	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		this.reg1 = new BankRegistry();
		reg1.bind("TestBank1", this);
		
		this.reg2 = new BankRegistry();
		reg2.bind("TestBank2", this);
	}
		
	

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testGetValue(){
	
		assertTrue(reg1.lockup("TestBank1").equals(this));
		assertTrue(reg2.lockup("TestBank2").equals(this));
	}


	@Override
	public void transfer(int accountNumber, double amount, Currency curr,
			String reference, int accountNumberBeneficiary, String BankName)
			throws NoMoneyEcxeption, MoneyLauderingException {
		// TODO Auto-generated method stub
		
	}


	@Override
	public void deposit(int accountNumber, double amount, Currency curr,
			String reference) throws MoneyLauderingException {
		// TODO Auto-generated method stub
		
	}

}

